﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace WindowsGame1
{
    class Cenario
    {

        public static List<Cenario> lista = new List<Cenario>();

        public Rectangle collisionBounds
        {
            get
            {
                return new Rectangle((int)posicao.X, (int)posicao.Y, (int)fundo.Width, (int)fundo.Height);
            }
        }

        public bool souPlataforma;
        public Texture2D fundo;
        public Vector2 posicao;

        public Cenario(Texture2D textura, Vector2 posicao)
        {
            this.fundo = textura;
            this.posicao = posicao;

            lista.Add(this);
        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(fundo, posicao, Color.White);
        }

    }

}
